import formBuilder from "@/comps/form/formBuilder";
import apiCat from "@/pages/v1/wms/ItemCategory/js/api";
import apiUnit from "@/pages/v1/wms/Unit/js/api";

export default function () {
    let fb = formBuilder()
    fb.setLabelPosition("right").setLabelWidth(100)
    fb.addText("name__like").setLabel("名称").setSpan(3).setTips("名称模糊搜索")
    fb.addCascade("categoryId","分类",3).setApi(apiCat.urlTree)
    fb.addSelect("unitId","单位",3).setApi(apiUnit.urlChoice)
    fb.addText("version").setSpan(3).setLabel("版本").setTypeNumber()
    return fb
}